home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 73
/
073.d81
/
paint manual
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
115 lines
10 a$=" "
20 ifa=0thena=1:load"routines",8,1
30 ifa=1thena=2:load"paint manual.o",8,1
40 of=2:goto260
41 fori=1to15:gosub60:next:return
42 fori=1to15:gosub80:next:return
43 poke214,24:print"[145]"spc(15)"[204][207][193][196][201][206][199]...[145]":poke646,cu:return
50 rem scroll up
60 ifof>(h-16)thenreturn
69 of=of+1:sys51206:printleft$(hd$,20)""a$(of+15):return
70 rem scroll down
80 ifof=1thenreturn
89 of=of-1:sys51209:print""a$(of):return
90 close4:open4,4,7:ln=5:t$="":print#4,x$spc(21)a$(1)x$x$spc(21)a$(3)x$x$;
100 ps=lf:print#4,spc(lf);:fori=5toh-2:gosub160:gosub170:if(ps+len(a$(i)))<=rithengosub150:next:goto250
110 lx=1:forix=1tolen(a$(i)):on-(mid$(a$(i),ix,1)=" "orix=len(a$(i)))gosub130:next
120 ps=ps+1:print#4," ";:next:goto250
130 if(ix-lx+ps)>=rithengosub200
140 print#4,mid$(a$(i),lx,ix-lx+1);:ps=ps+ix-lx+1:lx=ix+1:return
150 print#4,a$(i)" ";:ps=ps+len(a$(i))+1:return
160 ifps<>lfthenifleft$(a$(i),3)=" "orleft$(a$(i),3)="[160][160][160]"thengosub200:return
170 ifa$(i)=""ora$(i)=" "thengosub200:gosub200:i=i+1:ifi=h-1then190
180 ifa$(i)=""anda$(i-1)=""theni=i+1:on-(i=h-1)goto190:goto180
190 return
200 print#4,x$spc(lf);:ps=lf:ln=ln+1:ifln<57thenreturn
210 print#4,x$x$x$x$x$x$x$x$x$;:iftf=0thengosub230
220 print#4,x$,x$,x$,x$,x$spc(lf);:ln=5:return
230 ms$="[206]ext sheet/[210][197][212][213][210][206]/^":gosub420:poke198,0:wait198,1:geta$
240 ifa$<>"^"thenms$="[208]rinting...":gosub420:return
250 print#4,:close4:return
260 a$="":dima$(420):gosub360:hd$="":print"[147][159]";
270 print"[153][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]";
280 print"[159] ";
290 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
300 poke49152,4:poke49153,19:poke49154,1:poke49155,38
310 rv=0:bx=0:ex=40:by=3:bd=16:bc=7:gosub380:gosub610:poke53281,0:poke53280,0
320 bx=1:ex=39:by=21:bd=1:bc=3:gosub380
330 ln$=" ":x$=chr$(13):cu=3:n=197
340 fi$="t.paint":pr$="[208][160][193][160][201][160][206] [212][160][160] [194] [217] [160][160][206][160][213][160][205][160][194][160][197] [210]":lf=10:ri=75
350 print"[159]";spc(20-len(pr$)/2)pr$:goto440
360 ba$="[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]
370 a$[178]"(NULL)cmd(NULL)cmd(NULL)cmd(NULL)cmd(NULL)cmd(NULL)cmd(NULL)cmd":[129]i[178]1[164]6:bd$[178]bd$[170]a$:[130]:[142]
380 oc[178][194](646):[151]646,bc:rv$[178]"":[139]rv[167]rv$[178]"
390 poke211,bx:poke214,by:sys58732:printrv$"[176]"left$(ba$,ex-bx-2)"[174][157]";
400 printrv$left$(bd$,bd*3):printrv$spc(bx)"[145][173]"left$(ba$,ex-bx-2)"[189]
410 [151]211,bx:[151]214,by[170]1:[158]58732:[153]rv$[200](bd$,bd[172]3)"":[151]646,oc:rv[178]0:[142]
420 [141]430:[153]"sys"[200](hd$,23)[166]20[171][195](ms$)[173]2)ms$"open":[142]
430 [153][200](hd$,23)""[200](ln$,36):[142]
440 h[178][171]1:l[178]1:[141]43:[159]2,8,2,fi$[170]",p,r":[161]#2,a$,a$
450 [158]828,2,40:h[178]h[170]1
460 a$(h)[178]a$:[139]h[178]17[167][141]550:[141]700
465 [139]st[179][177]0[167][160]2:[151]646,0:[141]43:[141]700:l[178]0
480 [161]k$:[145][171](l[178]1[175]k$[178]"")[137]450:[139]k$[178]""[167]480
485 [139]he[167][141]560:[137]480
490 [145][171](k$[178]"")[171]2[172](k$[178]"on")[171]3[172](k$[178]"p")[171]4[172](k$[178]"c")[141]60,80,800,770
500 [145][171](k$[178]"q")[171]2[172](k$[178]"")[171]3[172](k$[178]"")[171]4[172](k$[178]"h")[141]660,1070,1080,2010
505 [145][171](k$[178]"input")[171]2[172](k$[178]"goto")[171]3[172](k$[178]"let")[141]41,42,42
540 [137]480
550 [151]214,4:[151]211,0:[151]646,cu:[153]"on";:[129]i[178]1[164]16:[153]""ln$:[130]
560 [151]646,cu:[151]214,4:[153]"on";:[129]i[178]0[164]15
565 [153]""a$(i[170]of)[200](ln$,38[171][195](a$(i[170]of))):[130]:he[178]0:[142]
590 [139]l[167][153]"open
600 return
610 fori=217to242:pokei,peek(i)or128:next:return
660 ms$="[209]uit? [193]re you sure? ([217]/[206])":gosub420:poke198,0
670 geta$:ifa$<>"y"anda$<>"n"then670
680 ifa$<>"y"thengosub430:gosub700:return
690 goto740
700 ms$=" ":gosub420
710 poke214,22:print"[145][158] [195][210][211][210]-[213][208]/[196][206][160][146][159] scan [158] [200] [146][159] help ":return
740 open15,8,15,"r0:paint boot=paint boot":input#15,er:close15
745 ifer<>63thenprint"[147]":end
750 a$="paint boot":q$=chr$(34):print"[147]":print"[144]load"q$a$q$",8
760 [153]"run":[151]631,13:[151]632,13:[151]198,2:[128]
770 [139]h[179]15[167][142]
780 cu[178]cu[170]1:[139]cu[178]16[167]cu[178]1
790 [151]646,cu:[141]560:[142]
800 [139]l[167][141]2000:[142]
810 [160]15:[160]4:[159]15,4,8:[160]15:[139]st[167][151]53281,1:[151]53281,0:[142]
820 ms$[178]"(NULL)ingle sheet or (NULL)ractor? ((NULL)/(NULL)/^)":[141]420
830 [161]a$:[139]a$[179][177]"s"[175]a$[179][177]"t"[175]a$[179][177]"^"[167]830
840 [139]a$[178]"^"[167][141]700:[142]
850 tf[178]1:[139]a$[178]"s"[167]tf[178]0
860 ms$[178]"(NULL)argins: (NULL)valasc(NULL):"[170][196](lf)[170]" (NULL)right$chr$left$(NULL):"[170][196](ri)[170]" ((NULL)/(NULL))":[141]420
870 [161]a$:[139]a$[179][177]"y"[175]a$[179][177]"n"[167]870
880 [139]a$[178]"n"[167][141]930
890 ms$[178]"(NULL)et top of form/(NULL)eturn/^":[141]420:[151]198,0:[146]198,1:[161]a$:[139]a$[178]"^"[167]840
900 [141]920:[141]90:[160]4:[159]4,4,7:[129]i[178]ln[164]67:[152]4,:[130]:[160]4
910 [141]700:[142]
920 ms$[178]"(NULL)rinting...":[141]420:[142]
930 ms$[178]" ":[141]420
940 [151]214,22:[153]"onopensyslen(NULL)(NULL)(NULL)-up/down/(NULL)val(NULL)(NULL)(NULL)(NULL) open(NULL)valasc(NULL)close(NULL)atn(NULL)chr$right$(NULL): cmdcmdcmdsys"lf
950 [161]a$:[139]a$[179][177]"on"[175]a$[179][177]""[175]a$[179][177][199](13)[167]950
960 [145][171](a$[178]"on")[171]2[172](a$[178]"")[171]3[172](a$[178][199](13))[137]970,980,990
970 lf[178]lf[170]5[170](40[172](lf[177]40)):[137]940
980 lf[178]lf[171]5[171](45[172](lf[179]1)):[137]940
990 [146]197,64
1000 [151]214,22:[153]"onsyslen(NULL)(NULL)(NULL)-up/down/(NULL)val(NULL)(NULL)(NULL)(NULL) open(NULL)right$chr$left$(NULL)close(NULL)atn(NULL)chr$right$(NULL) cmdcmdcmdcmdsys"ri
1010 [161]a$:[139]a$[179][177]"on"[175]a$[179][177]""[175]a$[179][177][199](13)[167]1010
1020 [145][171](a$[178]"on")[171]2[172](a$[178]"")[171]3[172](a$[178][199](13))[137]1030,1040,1050
1030 ri[178]ri[170]5[170](55[172](ri[177]105)):[137]1000
1040 ri[178]ri[171]5[171](55[172](ri[179]65)):[137]1000
1050 [142]
1060 [153][194](197):[137]1060
1070 of[178]1:[141]550:[142]
1080 [139]h[179]16[167][142]
1090 of[178]h[171]15:[141]550:[142]
2000 ms$[178]"(NULL)ot available yet. (NULL)till (NULL)(NULL)atnstr$ing...":[141]420:[146]197,64:[141]700:[142]
2010 [151]646,cu:[151]214,9:[151]211,0:[153]"on";:he[178]1
2015 [153]""ln$
2020 [153]" len(NULL)(NULL)(NULL) (NULL)(NULL)/str$(NULL)(NULL)(NULL) to scan asc1 pages down"
2030 [153]" len(NULL)(NULL)(NULL)-(NULL) moves to bottom asc7 pages up "
2040 [153]" left$(NULL)(NULL)val moves to top (NULL) to print "
2050 [153]" len to change colors (NULL) to quit ":[153]""ln$:[142]